using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.File.Data;
using CentralOffice.File.DataAccess;
using CategoryTable = CentralOffice.File.Data.FileCategoryDataSet.FileCategoryDataTable;
using CategoryRow = CentralOffice.File.Data.FileCategoryDataSet.FileCategoryRow;



namespace CentralOffice.File.BusinessActions
{
    public class FileCategory : DataAccessManager<FileCategoryDataSet, CategoryTable, CategoryRow, FileCategoryAdapter>
    {
        public static CategoryTable GetCategoryTree()
        {
            FileCategoryAdapter adapter = new FileCategoryAdapter();
            return adapter.GetCategoryTree();
        }

        public static int GetFileCountByCategoryId(Guid categoryId)
        {
            FileCategoryAdapter adapter = new FileCategoryAdapter();
            return adapter.GetFileCountByCategoryId(categoryId);
        }
    }
}
